﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="BuXiaChu.OrderDishes.Web.Admin.ShareCode.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagPrefix="Menu" TagName="Header" Src="~/Modules/Menu/Header.ascx" %>
<%@ Register TagPrefix="Menu" TagName="Footer" Src="~/Modules/Menu/Footer.ascx" %>
<%@ Register TagPrefix="Menu" TagName="InfoLeft" Src="~/Modules/Menu/InfoLeft.ascx" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link media="screen, projection" rel="stylesheet" type="text/css" href="../css/Blueprint/screen.css" />
    <link media="screen, projection" rel="stylesheet" type="text/css" href="../css/main.css" />

    <script type="text/javascript" src="../js/Extend.js"></script>

    <script type="text/javascript" src="../js/Common.js"></script>

    <script type="text/javascript" src="../js/jquery-vsdoc.js"></script>

</head>
<body>
    <div class="container">
        <Menu:Header ID="Header1" runat="server" />
        <form id="form1" runat="server">
        <Menu:InfoLeft ID="menu_InfoLeft" runat="server" />
        <div class="span-20 last">
            <div class="boxc">
                <span>类别名称</span>
                <input type="text" id="txt_ClassName" />
                <input type="button" id="btn_Save" value="保存" />
            </div>
            <div id="div_List" class="boxc">
                数据加载中...
            </div>
        </div>
        </form>
        <Menu:Footer ID="Footer1" runat="server" />
    </div>
</body>
</html>

<script type="text/javascript" src="../js/ShareCode/ShareCode.js"></script>

<script type="text/javascript">

    shareCodeManager.getClassList();

    $("#btn_Save").click(function() {
        var value = jDoc("txt_ClassName").value.trim();
        if (value == "") {
            alert(shareCodeManage.opClassNameEmpty);
            jDoc("#txt_ClassName").focus();
        } else {
            var obj = { className: value };
            shareCodeManager.addClass(obj);
        }
    });
</script>

